'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  const gzip = app.middleware.author();
  router.get('/', controller.home.index);
  router.get("/login",controller.user.user.login)
  router.post("/zc",controller.user.user.zc)

  router.get("/list",controller.blog.blog.list)
  router.get("/addlist",gzip,controller.blog.blog.addlist)
  router.get("/del",controller.blog.blog.del)
  router.get('/updata',controller.blog.blog.updata)
};
